import request from "@/utils/request"

export function findbyid(pid){
    return request({
        url: `/cat/findById/${pid}`,
        method: 'get',
    })
}

export function findAll(){
    return request({
        url: `/cat/findAll`,
        method: 'get',
    })
}

export function addcat(data){
    return request({
        url:`/cat/add`,
        method:'post',
        data
    })
}
export function updatecat(data){
    return request({
        url:`/cat/update`,
        method:'post',
        data
    })
}